using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Reporte_monitoreo_dispatch_InfoDispatch : PageController
{
    String id, fecha;
    String senal;
    String bateria;
    public static String nomimg;
    public static String batery;
    public BeanInfoDispatch bean = new BeanInfoDispatch();

    protected override void initialize()
    {
        id = Request.QueryString["id"].ToString();
        fecha =  Request.QueryString["fechainicio"].ToString();
        

        bean = DBMonitoreo.findInfoDispatchWebBean(id, fecha);


        senal = bean.senal.ToString();
        bateria = bean.bateria.ToString();

        if (senal == "1") { nomimg = "sinal_1.gif"; }
        if (senal == "2") { nomimg = "sinal_2.gif"; }
        if (senal == "3") { nomimg = "sinal_3.gif"; }
        if (senal == "4") { nomimg = "sinal_4.gif"; }
        if (bateria == "1") { batery = "ico_bat_1.JPG"; }
        if (bateria == "2") { batery = "ico_bat_2.JPG"; }
        if (bateria == "3") { batery = "ico_bat_3.JPG"; }

    }
}
